<template>
	<view class="notice">
		<view class="tit">
			{{info.title}}
		</view>
		<view class="">
			<u-parse :html="info.content"></u-parse>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				info: {}
			}
		},
		onLoad(e) {
			this.$u.api.getByCode({
					code: e.code
				})
				.then(res => {
					this.info = res.data
				});
		},
		
	}
</script>

<style scoped lang="scss">
	.notice {
		padding: 20rpx 40rpx;

		.tit{
			text-align: center;
			margin-bottom: 20rpx;
		}
	}
</style>
